#!/usr/bin/env python

import os,sys

reload(sys)
sys.setdefaultencoding("latin-1")

print sys.argv
print sys.getdefaultencoding()

#sys.setdefaultencoding()


st  = set([3,'rew',4,5])
ls = [x*3 for x in st]
print ls

f = open('tmp')
#print "".join([(str(len(unicode(x,"gb2312")))+"--"+repr(unicode(x,"gb2312").strip())+'\n') for x in f.readlines()])
f.close()

print "\x5b\x3b test line  1\n\x1b\x5b\x37\x3b\x33\x36\x6d\nline 2\n\x1b\x5b\x30\x6d\n0123456789\bkk\rkk\vjj\fppkw"
print "-------------------"
print "0123456789\x1b\x5b\x37Dkk"
